﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PageLeft.ascx.cs" Inherits="FortuneHeaven.Web.Controls.PageLeft" %>
<%@ Register  Src="~/Controls/LoginPanel.ascx" TagName="login" TagPrefix="uc"  %>
<div class="mleft">
           <uc:login ID="uclogin" runat="server"></uc:login>
            <div class="account">
                <a href="<%= Page.ResolveUrl("~/Pages/Charge/ChargeCenter.aspx")%>">
                    <img style=" width:214px; height:61px;" src="<%=ResolveUrl("~/Content/Image/Main/bg-09.jpg")%>"></a></div>
            <div class="allhelp">
                <div class="top weight">
                    帮助</div>
                <div class="mid">
                    <ul>
                        <li><a href="<%= Page.ResolveUrl("~/Pages/News/ShowContent.aspx?newsname=游戏指引")%>">游戏指引</a></li>
                        <li><a href="<%= Page.ResolveUrl("~/Pages/News/ShowContent.aspx?newsname=如何获得金币")%>">如何获得金币</a></li>
                        <li><a href="<%= Page.ResolveUrl("~/Pages/News/ShowContent.aspx?newsname=兑奖指南")%>">兑奖指南</a></li>
                        <li><a href="<%= Page.ResolveUrl("~/Pages/News/ShowContent.aspx?newsname=常见问题")%>">常见问题</a></li>
                    </ul>
                    <div class="phone">
                        <img src="<%=ResolveUrl("~/Content/Image/Main/bg-18.jpg")%>">电话：400 0630 818
                    </div>
                    <div class="picone">
                        <a href="<%= Page.ResolveUrl("~/Pages/News/ShowContent.aspx?newsname=客服中心")%>"><img src="<%=ResolveUrl("~/Content/Image/Main/bg-19.jpg")%>"></a><a href="<%= Page.ResolveUrl("~/Pages/News/ShowContent.aspx?newsname=客服中心")%>">客服中心</a></div>
                    <div class="picone">
                        <a href="<%= Page.ResolveUrl("~/Pages/News/ShowContent.aspx?newsname=获奖公告")%>"><img src="<%=ResolveUrl("~/Content/Image/Main/bg-23.jpg")%>"></a><a href="<%= Page.ResolveUrl("~/Pages/News/ShowContent.aspx?newsname=获奖公告")%>">获奖公告</a></div>
                </div>
                <div class="bot">
                </div>
            </div>
            <div class="moneype" id="moneyshow" runat="server" visible="false">
                <script type="text/javascript">
                    window.onload = function () {
                        var Mar = document.getElementById("spreadvaluediv");
                        var child_div = document.getElementById("spreadvalueul")

                        var line = 385;
                        var count = <%=(showvalue.Length!=0?showvalue.Length-1:0) /5 +1 %>;
                        var picH = line ; //移动高度
                        var totalH = line * count;
                        var scrollstep = 2; //移动步幅,越大越快
                        var scrolltime = 20; //移动频度(毫秒)越大越慢
                        var stoptime = 3000; //间断时间(毫秒)
                        Mar.innerHTML += Mar.innerHTML;
                        function start() {
                            Mar.scrollTop += scrollstep;
                            if (Mar.scrollTop >= totalH) {
                                Mar.scrollTop = 0;
                            }
                            if (Mar.scrollTop % picH < scrollstep) {
                                setTimeout(start, stoptime);
                            } else {
                                setTimeout(start, scrolltime);
                            }
                        }
                        setTimeout(start, stoptime);
                    }
            </script>
               <div class="head weightt">大家正在赚钱...</div>
               <div class="body" style=" height:385px;  overflow:hidden" id="spreadvaluediv">
                  <ul id="spreadvalueul" style=" height:<%=((showvalue.Length!=0?showvalue.Length-1:0)/5 +1)*385 %>px">
                    <% if(moneyshow.Visible && showvalue!=null){ %>
                     <% for (int k = 0; k < showvalue.Length;k++ )
                        {%>
                        <li>
                        <% if (k % 2 == 0)
                           { %>
                       <span class="left"><a href="javascript://"><img src="<%=ResolveUrl("~/Content/Image/Main/dy.jpg")%>"/></a></span>
                       <%}
                           else
                           { %>
                           <span class="left"><a href="javascript://"><img src="<%=ResolveUrl("~/Content/Image/Main/dy2.jpg")%>"/></a></span>
                       <% } %>
                       
                       <span class="right">
                        <%= showvalue[k] %>
                       </span>
                     </li>
                     <%  }%>
                    <% } %>
                  </ul>
               </div>
            </div>
</div>